package com.exam.pojo.domain;

import lombok.Data;
import org.bson.types.ObjectId;
import org.springframework.data.annotation.Id;
import org.springframework.data.mongodb.core.mapping.Document;
import org.springframework.data.mongodb.core.mapping.Field;

import java.time.LocalDateTime;

@Data
@Document(collection = "question_discuss")
public class QuestionDiscuss {

    @Id
    private ObjectId id;
    @Field("question_id")
    private Long questionId;

    private String uuid;
    //评论内容
    private String discuss;
    //0: 不显示， 1 显示
    private Integer status = 0;

    //是否匿名  0 是 1 不是
    private Integer anonymous = 0;

    @Field("create_time")
    private LocalDateTime createTime;
}
